package tgeo;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Layout;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;

public class HexView extends ViewPart {
	Text txtStr = null;
	Text txtHex = null;
	final int PAD = 10;
	
	public HexView() {
		
	}

	@Override
	public void createPartControl(Composite parent) {
		Layout layout = new FormLayout();
		parent.setLayout(layout);
		FormData data = null;
		
		txtStr = new Text(parent, SWT.NONE);
		txtHex = new Text(parent, SWT.NONE);
		
		data = new FormData();
		data.top = new FormAttachment(0, PAD);
		data.left = new FormAttachment(0, PAD);
		data.right = new FormAttachment(50, -PAD);
		data.bottom = new FormAttachment(100, -PAD);
		txtStr.setLayoutData(data);

		data = new FormData();
		data.top = new FormAttachment(0, PAD);
		data.left = new FormAttachment(txtStr, PAD);
		data.right = new FormAttachment(100, -PAD);
		data.bottom = new FormAttachment(100, -PAD);
		txtHex.setLayoutData(data);
		
	}

	@Override
	public void setFocus() {
		

	}

}
